package coderun

import (
	"fmt"
	"os/exec"
)

func Runpy(args []string) string {
	cmdline := exec.Command("python", args...)
	result, err := cmdline.CombinedOutput()
	if err != nil {
		fmt.Println(err)
		return "Exce wrong.\n"
	}
	return string(result)
}
